/*
 *************************************************************************
 * The contents of this file are subject to the Openbravo  Public  License
 * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
 * Version 1.1  with a permitted attribution clause; you may not  use this
 * file except in compliance with the License. You  may  obtain  a copy of
 * the License at http://www.openbravo.com/legal/license.html
 * Software distributed under the License  is  distributed  on  an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 * License for the specific  language  governing  rights  and  limitations
 * under the License.
 * The Original Code is Openbravo ERP.
 * The Initial Developer of the Original Code is Openbravo SLU
 * All portions are Copyright (C) 2008-2014 Openbravo SLU
 * All Rights Reserved.
 * Contributor(s):  ______________________________________.
 ************************************************************************
*/
package com.mes.data;

import com.eam.data.EmesShapeItem;
import com.mes.manufacture.data.EmesoJobOrder;
import com.mes.manufacture.data.EmesoJobPlan;
import com.mes.manufacture.data.EmesoManuOrderBom;
import com.mes.plan.data.EmespPlanOrder;
import com.mes.plan.data.EmespPlanOrderBom;
import com.mes.plan.data.EmespPlanOrderFoot;
import com.wms.entity.WmsDeliveryDetail;
import com.wms.entity.WmsMaterialListMx;
import com.wms.entity.WmsSalesOrderFoot;
import com.wms.entity.WmsStorageBatch;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.openbravo.base.structure.ActiveEnabled;
import org.openbravo.base.structure.BaseOBObject;
import org.openbravo.base.structure.ClientEnabled;
import org.openbravo.base.structure.OrganizationEnabled;
import org.openbravo.base.structure.Traceable;
import org.openbravo.model.ad.access.User;
import org.openbravo.model.ad.system.Client;
import org.openbravo.model.common.enterprise.Organization;
/**
 * Entity class for entity Emes_Size (stored in table Emes_Size).
 *
 * NOTE: This class should not be instantiated directly. To instantiate this
 * class the {@link org.openbravo.base.provider.OBProvider} should be used.
 */
public class EmesSize extends BaseOBObject implements Traceable, ClientEnabled, OrganizationEnabled, ActiveEnabled {
    private static final long serialVersionUID = 1L;
    public static final String TABLE_NAME = "Emes_Size";
    public static final String ENTITY_NAME = "Emes_Size";
    public static final String PROPERTY_ID = "id";
    public static final String PROPERTY_CLIENT = "client";
    public static final String PROPERTY_ORGANIZATION = "organization";
    public static final String PROPERTY_ACTIVE = "active";
    public static final String PROPERTY_CREATIONDATE = "creationDate";
    public static final String PROPERTY_UPDATED = "updated";
    public static final String PROPERTY_CREATEDBY = "createdBy";
    public static final String PROPERTY_UPDATEDBY = "updatedBy";
    public static final String PROPERTY_CODE = "code";
    public static final String PROPERTY_TYPE = "type";
    public static final String PROPERTY_CODECN = "codeCn";
    public static final String PROPERTY_CODEEUR = "codeEur";
    public static final String PROPERTY_CODEUS = "codeUs";
    public static final String PROPERTY_CODEJP = "codeJp";
    public static final String PROPERTY_CODETW = "codeTw";
    public static final String PROPERTY_CODEUK = "codeUk";
    public static final String PROPERTY_FOOTLENGTH = "footLength";
    public static final String PROPERTY_DESCRIPTION = "description";
    public static final String PROPERTY_EMESPBOMITEMFILELIST = "emesPBomItemFileList";
    public static final String PROPERTY_EMESPBOMITEMMETELIST = "emesPBomItemMeteList";
    public static final String PROPERTY_EMESPBOMPROCESSFILELIST = "emesPbomProcessFileList";
    public static final String PROPERTY_EMESSHAPEITEMLIST = "emesShapeItemList";
    public static final String PROPERTY_EMESXUANTOUSIZELIST = "emesXuantouSizeList";
    public static final String PROPERTY_EMESOJOBORDERLIST = "emesoJobOrderList";
    public static final String PROPERTY_EMESOJOBPLANLIST = "emesoJobPlanList";
    public static final String PROPERTY_EMESOMANUORDERBOMLIST = "emesoManuOrderBomList";
    public static final String PROPERTY_EMESPPLANORDERLIST = "emespPlanOrderList";
    public static final String PROPERTY_EMESPPLANORDERBOMLIST = "emespPlanOrderBomList";
    public static final String PROPERTY_EMESPPLANORDERFOOTLIST = "emespPlanOrderFootList";
    public static final String PROPERTY_WMSDELIVERYDETAILLIST = "wmsDeliveryDetailList";
    public static final String PROPERTY_WMSMATERIALLISTMXLIST = "wmsMaterialListMxList";
    public static final String PROPERTY_WMSSALESORDERFOOTLIST = "wmsSalesOrderFootList";
    public static final String PROPERTY_WMSSTORAGEBATCHLIST = "wmsStorageBatchList";

    public EmesSize() {
        setDefaultValue(PROPERTY_ACTIVE, true);
        setDefaultValue(PROPERTY_EMESPBOMITEMFILELIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_EMESPBOMITEMMETELIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_EMESPBOMPROCESSFILELIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_EMESSHAPEITEMLIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_EMESXUANTOUSIZELIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_EMESOJOBORDERLIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_EMESOJOBPLANLIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_EMESOMANUORDERBOMLIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_EMESPPLANORDERLIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_EMESPPLANORDERBOMLIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_EMESPPLANORDERFOOTLIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_WMSDELIVERYDETAILLIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_WMSMATERIALLISTMXLIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_WMSSALESORDERFOOTLIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_WMSSTORAGEBATCHLIST, new ArrayList<Object>());
    }

    @Override
    public String getEntityName() {
        return ENTITY_NAME;
    }

    public String getId() {
        return (String) get(PROPERTY_ID);
    }

    public void setId(String id) {
        set(PROPERTY_ID, id);
    }

    public Client getClient() {
        return (Client) get(PROPERTY_CLIENT);
    }

    public void setClient(Client client) {
        set(PROPERTY_CLIENT, client);
    }

    public Organization getOrganization() {
        return (Organization) get(PROPERTY_ORGANIZATION);
    }

    public void setOrganization(Organization organization) {
        set(PROPERTY_ORGANIZATION, organization);
    }

    public Boolean isActive() {
        return (Boolean) get(PROPERTY_ACTIVE);
    }

    public void setActive(Boolean active) {
        set(PROPERTY_ACTIVE, active);
    }

    public Date getCreationDate() {
        return (Date) get(PROPERTY_CREATIONDATE);
    }

    public void setCreationDate(Date creationDate) {
        set(PROPERTY_CREATIONDATE, creationDate);
    }

    public Date getUpdated() {
        return (Date) get(PROPERTY_UPDATED);
    }

    public void setUpdated(Date updated) {
        set(PROPERTY_UPDATED, updated);
    }

    public User getCreatedBy() {
        return (User) get(PROPERTY_CREATEDBY);
    }

    public void setCreatedBy(User createdBy) {
        set(PROPERTY_CREATEDBY, createdBy);
    }

    public User getUpdatedBy() {
        return (User) get(PROPERTY_UPDATEDBY);
    }

    public void setUpdatedBy(User updatedBy) {
        set(PROPERTY_UPDATEDBY, updatedBy);
    }

    public String getCode() {
        return (String) get(PROPERTY_CODE);
    }

    public void setCode(String code) {
        set(PROPERTY_CODE, code);
    }

    public String getType() {
        return (String) get(PROPERTY_TYPE);
    }

    public void setType(String type) {
        set(PROPERTY_TYPE, type);
    }

    public BigDecimal getCodeCn() {
        return (BigDecimal) get(PROPERTY_CODECN);
    }

    public void setCodeCn(BigDecimal codeCn) {
        set(PROPERTY_CODECN, codeCn);
    }

    public BigDecimal getCodeEur() {
        return (BigDecimal) get(PROPERTY_CODEEUR);
    }

    public void setCodeEur(BigDecimal codeEur) {
        set(PROPERTY_CODEEUR, codeEur);
    }

    public BigDecimal getCodeUs() {
        return (BigDecimal) get(PROPERTY_CODEUS);
    }

    public void setCodeUs(BigDecimal codeUs) {
        set(PROPERTY_CODEUS, codeUs);
    }

    public BigDecimal getCodeJp() {
        return (BigDecimal) get(PROPERTY_CODEJP);
    }

    public void setCodeJp(BigDecimal codeJp) {
        set(PROPERTY_CODEJP, codeJp);
    }

    public BigDecimal getCodeTw() {
        return (BigDecimal) get(PROPERTY_CODETW);
    }

    public void setCodeTw(BigDecimal codeTw) {
        set(PROPERTY_CODETW, codeTw);
    }

    public BigDecimal getCodeUk() {
        return (BigDecimal) get(PROPERTY_CODEUK);
    }

    public void setCodeUk(BigDecimal codeUk) {
        set(PROPERTY_CODEUK, codeUk);
    }

    public String getFootLength() {
        return (String) get(PROPERTY_FOOTLENGTH);
    }

    public void setFootLength(String footLength) {
        set(PROPERTY_FOOTLENGTH, footLength);
    }

    public BigDecimal getDescription() {
        return (BigDecimal) get(PROPERTY_DESCRIPTION);
    }

    public void setDescription(BigDecimal description) {
        set(PROPERTY_DESCRIPTION, description);
    }

    @SuppressWarnings("unchecked")
    public List<EmesPBomItemFile> getEmesPBomItemFileList() {
      return (List<EmesPBomItemFile>) get(PROPERTY_EMESPBOMITEMFILELIST);
    }

    public void setEmesPBomItemFileList(List<EmesPBomItemFile> emesPBomItemFileList) {
        set(PROPERTY_EMESPBOMITEMFILELIST, emesPBomItemFileList);
    }

    @SuppressWarnings("unchecked")
    public List<EmesPBomItemMete> getEmesPBomItemMeteList() {
      return (List<EmesPBomItemMete>) get(PROPERTY_EMESPBOMITEMMETELIST);
    }

    public void setEmesPBomItemMeteList(List<EmesPBomItemMete> emesPBomItemMeteList) {
        set(PROPERTY_EMESPBOMITEMMETELIST, emesPBomItemMeteList);
    }

    @SuppressWarnings("unchecked")
    public List<EmesPbomProcessFile> getEmesPbomProcessFileList() {
      return (List<EmesPbomProcessFile>) get(PROPERTY_EMESPBOMPROCESSFILELIST);
    }

    public void setEmesPbomProcessFileList(List<EmesPbomProcessFile> emesPbomProcessFileList) {
        set(PROPERTY_EMESPBOMPROCESSFILELIST, emesPbomProcessFileList);
    }

    @SuppressWarnings("unchecked")
    public List<EmesShapeItem> getEmesShapeItemList() {
      return (List<EmesShapeItem>) get(PROPERTY_EMESSHAPEITEMLIST);
    }

    public void setEmesShapeItemList(List<EmesShapeItem> emesShapeItemList) {
        set(PROPERTY_EMESSHAPEITEMLIST, emesShapeItemList);
    }

    @SuppressWarnings("unchecked")
    public List<EmesXuantouSize> getEmesXuantouSizeList() {
      return (List<EmesXuantouSize>) get(PROPERTY_EMESXUANTOUSIZELIST);
    }

    public void setEmesXuantouSizeList(List<EmesXuantouSize> emesXuantouSizeList) {
        set(PROPERTY_EMESXUANTOUSIZELIST, emesXuantouSizeList);
    }

    @SuppressWarnings("unchecked")
    public List<EmesoJobOrder> getEmesoJobOrderList() {
      return (List<EmesoJobOrder>) get(PROPERTY_EMESOJOBORDERLIST);
    }

    public void setEmesoJobOrderList(List<EmesoJobOrder> emesoJobOrderList) {
        set(PROPERTY_EMESOJOBORDERLIST, emesoJobOrderList);
    }

    @SuppressWarnings("unchecked")
    public List<EmesoJobPlan> getEmesoJobPlanList() {
      return (List<EmesoJobPlan>) get(PROPERTY_EMESOJOBPLANLIST);
    }

    public void setEmesoJobPlanList(List<EmesoJobPlan> emesoJobPlanList) {
        set(PROPERTY_EMESOJOBPLANLIST, emesoJobPlanList);
    }

    @SuppressWarnings("unchecked")
    public List<EmesoManuOrderBom> getEmesoManuOrderBomList() {
      return (List<EmesoManuOrderBom>) get(PROPERTY_EMESOMANUORDERBOMLIST);
    }

    public void setEmesoManuOrderBomList(List<EmesoManuOrderBom> emesoManuOrderBomList) {
        set(PROPERTY_EMESOMANUORDERBOMLIST, emesoManuOrderBomList);
    }

    @SuppressWarnings("unchecked")
    public List<EmespPlanOrder> getEmespPlanOrderList() {
      return (List<EmespPlanOrder>) get(PROPERTY_EMESPPLANORDERLIST);
    }

    public void setEmespPlanOrderList(List<EmespPlanOrder> emespPlanOrderList) {
        set(PROPERTY_EMESPPLANORDERLIST, emespPlanOrderList);
    }

    @SuppressWarnings("unchecked")
    public List<EmespPlanOrderBom> getEmespPlanOrderBomList() {
      return (List<EmespPlanOrderBom>) get(PROPERTY_EMESPPLANORDERBOMLIST);
    }

    public void setEmespPlanOrderBomList(List<EmespPlanOrderBom> emespPlanOrderBomList) {
        set(PROPERTY_EMESPPLANORDERBOMLIST, emespPlanOrderBomList);
    }

    @SuppressWarnings("unchecked")
    public List<EmespPlanOrderFoot> getEmespPlanOrderFootList() {
      return (List<EmespPlanOrderFoot>) get(PROPERTY_EMESPPLANORDERFOOTLIST);
    }

    public void setEmespPlanOrderFootList(List<EmespPlanOrderFoot> emespPlanOrderFootList) {
        set(PROPERTY_EMESPPLANORDERFOOTLIST, emespPlanOrderFootList);
    }

    @SuppressWarnings("unchecked")
    public List<WmsDeliveryDetail> getWmsDeliveryDetailList() {
      return (List<WmsDeliveryDetail>) get(PROPERTY_WMSDELIVERYDETAILLIST);
    }

    public void setWmsDeliveryDetailList(List<WmsDeliveryDetail> wmsDeliveryDetailList) {
        set(PROPERTY_WMSDELIVERYDETAILLIST, wmsDeliveryDetailList);
    }

    @SuppressWarnings("unchecked")
    public List<WmsMaterialListMx> getWmsMaterialListMxList() {
      return (List<WmsMaterialListMx>) get(PROPERTY_WMSMATERIALLISTMXLIST);
    }

    public void setWmsMaterialListMxList(List<WmsMaterialListMx> wmsMaterialListMxList) {
        set(PROPERTY_WMSMATERIALLISTMXLIST, wmsMaterialListMxList);
    }

    @SuppressWarnings("unchecked")
    public List<WmsSalesOrderFoot> getWmsSalesOrderFootList() {
      return (List<WmsSalesOrderFoot>) get(PROPERTY_WMSSALESORDERFOOTLIST);
    }

    public void setWmsSalesOrderFootList(List<WmsSalesOrderFoot> wmsSalesOrderFootList) {
        set(PROPERTY_WMSSALESORDERFOOTLIST, wmsSalesOrderFootList);
    }

    @SuppressWarnings("unchecked")
    public List<WmsStorageBatch> getWmsStorageBatchList() {
      return (List<WmsStorageBatch>) get(PROPERTY_WMSSTORAGEBATCHLIST);
    }

    public void setWmsStorageBatchList(List<WmsStorageBatch> wmsStorageBatchList) {
        set(PROPERTY_WMSSTORAGEBATCHLIST, wmsStorageBatchList);
    }

}
